package com.springboot.uav.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.math.BigDecimal;
import java.util.Date;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * @TableName orders
 */
@TableName(value ="orders")
@Data
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class Orders {
    @TableId
    @Schema(description = "订单id",example = "6")
    private Integer orderId;

    @Schema(description = "下单用户id",example = "3")
    private Integer customerId;

    @Schema(description = "接单用户id",example = "2")
    private Integer courierId;

    @Schema(description = "下单时间",example = "2024-11-20 21:38:17")
    private Date orderData;

    @Schema(description = "取件地址",example = "深大沧海校区驿站")
    private String pickupAddress;

    @Schema(description = "收件地址",example = "冬筑1249")
    private String deliveryAddress;

    @Schema(description = "小件数量",example = "1")
    private Integer smallNum;

    @Schema(description = "中件数量",example = "1")
    private Integer mediumNum;

    @Schema(description = "大件数量",example = "1")
    private Integer bigNum;

    @Schema(description = "备注",example = "放宿舍门口就行")
    private String description;

    @Schema(description = "订单金额",example = "6")
    private BigDecimal reward;

    @Schema(description = "订单状态",example = "0 空闲 1 进行中 2 已完成")
    private Integer orderStatus;

    @Schema(description = "取件码",example = "12-2-5614,12-9-4899,5-4-3360")
    private String code;

    @Schema(description = "联系方式",example = "13534200119")
    private String phoneNumber;
}